﻿<%@ Control Language="C#" Inherits="Yuanlin.Business.TemplateListControl, Yuanlin.Business" AutoEventWireup="true" %>

<%@ Import Namespace="Yuanlin.Business" %>
<fieldset>
	<legend>模板列表</legend>	
			
    <asp:Repeater id="list" runat="server">
        <HeaderTemplate>
            <table border="0" cellpadding="0" cellspacing="0" class="AdminTable">
	            <thead>
		            <tr>
		                <th class="TitleCol"></th>
			            <th class="TitleCol">模板名称</th>
			            <th class="TitleCol">是否默认</th>
		            </tr>
	            </thead>
	            <tbody>
        </HeaderTemplate>
        <ItemTemplate>
            <tr>
                <td class="TitleCol"><img src="<%= System.Web.Core.Globals.ApplicationPath %><%# DataBinder.Eval(Container.DataItem, "PicFilePath")%>" height="55" width="95" /></td>
			    <td class="TitleCol">
				    <a href="<%# SiteUrls.Instance().GetTemplateEditUrl(DataBinder.Eval(Container.DataItem, "Value").ToString()) %>">
					    <%# DataBinder.Eval(Container.DataItem, "Name")%>
				    </a>
			    </td>
			    <td>
			        <%# DataBinder.Eval(Container.DataItem, "IsDefault")%>
			    </td>
		    </tr>
        </ItemTemplate>
        <FooterTemplate>
			    </tbody>
	        </table>
        </FooterTemplate>
    </asp:Repeater>
</fieldset>